//
// Created by wujehy on 2020/6/22.
//

#ifndef LEARNING_CPP_SQLITEDB_H
#define LEARNING_CPP_SQLITEDB_H

#include <map>
#include "DataBaseImpl.h"
/**
 * @brief 默认实现的情况 , 使用 map 模拟 数据库存储
 */
class SqliteDB : public DataBaseImpl
{
private:
    std::map<std::string , std::string > KV_map; // 储存信息的map
public:
    int initDataBase() override;

    int Insert(std::string key, std::string value) override;

    int Select(std::string key,std::string &output_value ) override;

    int Delete(std::string key) override;
};


#endif //LEARNING_CPP_SQLITEDB_H
